package com.hanserwei.mydemo.stream;

import java.util.stream.Stream;

public class SummaryTest1 {
    public static void main(String[] args) {
        Stream<String> stream = Stream.of("令狐冲", "风清扬", "独孤求败", "方证", "东方不败", "冲虚", "向问天", "任我行", "不戒", "令狐冲");
        stream.forEach(System.out::println);
        // stream.forEach(System.out::println); //报错！
    }
}
